Problem when adding own tasks
Hello everyone, this is my first mail here, I hope this is the right "channel" for my question.
I am currently using the 'Kirkstone' branch of yocto and I have encountered a problem. I have written a .bbappend file for *systemd* in my own layer. Here I have written my own python function as follows:
python do_my_own_function(){
# do something } addtask my_own_function before do_install
This seems to work most of the time. However, I would like to execute my own function *AFTER* the do_install. However, this does not seem to work.
If I delete the build folder before building the image and then look in the *log.task_order* file I see that my own function is NOT executed. Other people on stackoverflow ( https://stackoverflow.com/questions/76234388/bitbake-addtask-deploy-after-do-install-not-working-from-image-recipe ) seem to have observed this problem as well.
So I wanted to ask how to solve the problem or debug it further?
Hi,
Quoted 21 lines · athragared via lists.openembedded.org
Hello everyone, this is my first mail here, I hope this is the right "channel" for my question.
I am currently using the 'Kirkstone' branch of yocto and I have encountered a problem. I have written a .bbappend file for *systemd* in my own layer. Here I have written my own python function as follows:
python do_my_own_function(){
# do something } addtask my_own_function before do_installThis seems to work most of the time. However, I would like to execute my own function *AFTER* the
do_install. However, this does not seem to work. If I delete the build folder before building the image and then look in the *log.task_order* file I see that my own function is NOT executed. Other people on stackoverflow
<https://stackoverflow.com/questions/76234388/bitbake-addtask-deploy-after-do-install-not-working-from-image-recipe>
seem to have observed this problem as well.
Quoted 2 lines
So I wanted to ask how to solve the problem or debug it further?
Something needs to depend on your task for it to be called :
addtask my_own_function after do_install before do_build This should make your task called on your recipe build.
You may need to choose a different "before task" depending on what your task does.
And beware of cache : bitbake might consider it does not need to run your task if it has done so already at some point.
Regards,
Signature · 1 line
Yoann Congal